package com.indusfo.spc.pojo;

import com.indusfo.spc.common.pojo.BasePojo;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * 托盘实体类
 * 
 * @author chenm
 * @date 2019/07/06 15:56
 *
 */

@Table(name = "ba_pallet")
public class Pallet extends BasePojo {

	private static final long serialVersionUID = 1;

	@Id
	@Column(name = "pallet_id", insertable = false)
	private Integer palletId; // 托盘id

	private String palletCode;// 托盘编号

	private String palletName;// 托盘名称

	private String orderNo;// 生产任务单号

	private String batchCode;// 批号

  	private Integer batchId; // 批次ID

	private Date createDate;// 创建时间

	private Date modifyDate;// 修改时间

	private String remark;// 备注

	//1启用，2停用，3，删除
	private Integer dataState;// 状态

	private String dataStateName ;// 状态名称


	public Pallet() {
	}

	public Pallet(String palletCode, String palletName) {
		this.palletCode = palletCode;
		this.palletName = palletName;
	}

	public Integer getPalletId() {
		return palletId;
	}

	public void setPalletId(Integer palletId) {
		this.palletId = palletId;
	}

	public String getPalletCode() {
		return palletCode;
	}

	public void setPalletCode(String palletCode) {
		this.palletCode = palletCode== null ? null : palletCode.trim().replace(" ","");
	}

	public String getPalletName() {
		return palletName;
	}

	public void setPalletName(String palletName) {
		this.palletName = palletName== null ? null : palletName.trim().replace(" ","");
	}

	public String getOrderNo() {
		return orderNo;
	}

	public void setOrderNo(String orderNo) {
		this.orderNo = orderNo== null ? null : orderNo.trim().replace(" ","");
	}

	public String getBatchCode() {
		return batchCode;
	}

	public void setBatchCode(String batchCode) {
		this.batchCode = batchCode== null ? null : batchCode.trim().replace(" ","");
	}

	public Integer getBatchId() {
		return batchId;
	}

	public void setBatchId(Integer batchId) {
		this.batchId = batchId;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public Date getModifyDate() {
		return modifyDate;
	}

	public void setModifyDate(Date modifyDate) {
		this.modifyDate = modifyDate;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark== null ? null : remark.trim().replace(" ","");
	}

	public Integer getDataState() {
		return dataState;
	}

	public void setDataState(Integer dataState) {
		this.dataState = dataState;
	}

	public String getDataStateName() {
		return dataStateName;
	}

	public void setDataStateName(String dataStateName) {
		this.dataStateName = dataStateName;
	}
	
	
	
}
